<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>视频下载器</title>
    <style>
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; padding: 20px; background-color: #f4f4f4; }
        .container { max-width: 700px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        h1 { text-align: center; color: #333; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
        .form-group select { width: 100%; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
        .input-group { display: flex; margin-bottom: 20px; }
        #videoUrl { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; font-size: 16px; }
        #downloadBtn { padding: 10px 20px; border: none; background-color: #007bff; color: white; font-size: 16px; border-radius: 0 4px 4px 0; cursor: pointer; }
        #downloadBtn:hover { background-color: #0056b3; }
        #progress-container { margin-top: 20px; } /* 移除原有样式 */
        #progress-text { background-color: #eee; border-radius: 4px; padding: 15px; min-height: 50px; font-family: 'Courier New', Courier, monospace; font-size: 14px; line-height: 1.6; color: #333; white-space: pre-wrap; margin-bottom: 10px; }
        #progress-bar { width: 100%; height: 20px; }
    </style>
</head>
<body>
    <div class="container">
        <h1>视频下载器</h1>
        
        <div class="form-group">
            <label for="platform">选择平台:</label>
            <select id="platform">
                <option value="generic" selected>通用 (YouTube, Bilibili等)</option>
                <option value="douyin">抖音 (无水印)</option>
            </select>
            <p id="platform-instructions" style="font-size: 12px; color: #666; margin-top: 5px; display: none;">
                <!-- 此文本将由 renderer.js 更新 -->
            </p>
        </div>
        
        <div class="input-group">
            <input type="text" id="videoUrl" placeholder="输入视频链接">
            <button id="downloadBtn">下载</button>
        </div>

        <div id="progress-container">
            <div id="progress-text">等待下载开始...</div>
            <progress id="progress-bar" value="0" max="100"></progress>
        </div>
    </div>

    <script src="./renderer.js"></script>
</body>
</html>